package edu.neu.swc.cloud.service;

import edu.neu.swc.cloud.domain.Factory;

import java.util.List;

public interface FactoryService {

    List<Factory> findAll();

    void shutDownById(int fac_id);

    void startUpById(int fac_id);

    List<Factory> findFacByCon(Factory factory);

    /**
     * 依据ID寻找工厂
     * @param fac_id
     * @return
     */
    Factory findFacById(int fac_id);

    /**
     * 依据条件查询工厂数目
     * @param s
     * @return
     */
    int getFactoryCounts(String s);

    /**
     * 依据条件查询工厂列表
     * @param s
     * @param pageStart
     * @param pageSize
     * @return
     */
    List<Factory> findFactoryByQuery(String s, int pageStart, int pageSize);
}
